﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.Services;
using System.Web.Script.Serialization;

namespace ProjectSem3
{
    public partial class WebForm6 : System.Web.UI.Page
    {
        [WebMethod(EnableSession=false)]
        public static string Hello(string name)
        {
            DataClassesHeaxlthDataContext dc = new DataClassesHeaxlthDataContext();
            policy obj = dc.policies.Where(x=>x.policyname.Equals(name)).Single();
            HospitalInfo hi = dc.HospitalInfos.Where(x => x.hospitalid == obj.hospitalid).Single();
            return obj.amount+"|"+obj.emi+"|"+hi.hospitalname;
           
        }
        
    }
}